public class Xiyouji {
    private int height;
    String ear;
    void speak(String s) {
        System.out.println(s);
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
}
class A{
    public static void main(String args[]) {
        Xiyouji zhubajie;
        zhubajie = new Xiyouji();
        zhubajie.setHeight(170);
        zhubajie.ear = "两只大耳朵";
        height(zhubajie);
        System.out.println(zhubajie.ear);
        zhubajie.speak("师傅，咱们别去西天了，改去月宫吧");
    }

    private static void height(Xiyouji zhubajie) {
        System.out.println("身高："+ zhubajie.getHeight());
    }
}